package com.niit.entity;

import java.util.List;

public class User {

    private int id;
    private String name;
    private Dept dept;
    public User(){}
//    private List<String> hobbies;
    public User(Dept dept, int id, String name) {
        this.dept = dept;
        this.id = id;
        this.name = name;
    }

    public void test(){
        dept.teambuilding();
        System.out.println("id="+id);
    }
}
